package com.SmartCare.controller.client;


import com.SmartCare.common.Result;
import com.SmartCare.service.message.IdentityVerificationService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 身份验证 前端控制器
 */
@RestController
@RequestMapping("/identity")
@Api(tags = "C端身份审核消息接口")
public class IdentityController {
    @Resource
    private IdentityVerificationService identityVerificationService;

    @PostMapping("/send-request")
    public Result sendRequest(@RequestParam String careHomeName,
                              @RequestParam Long userId,
                              @RequestParam Integer role) {
        return identityVerificationService.addNewVerification(careHomeName, userId, role);
    }
}

